#ifndef MIMETYPE_H
#define MIMETYPE_H
#pragma once

#include <unordered_map>
#include <pthread.h>

class MimeType
{
private:
    static void init();
    static std::unordered_map<std::string, std::string> mime;
    MimeType();
    MimeType(const MimeType &m);

public:
    static std::string getMime(const std::string &suffix);

private:
    static pthread_once_t once_control;
};

#endif // MIMETYPE_H
